package com.xuelang.pipeline.worker.app.crd.application;

import com.xuelang.pipeline.worker.client.common.result.ApiResult;
import com.xuelang.pipeline.worker.client.crd.dto.ApplicationDTO;
import com.xuelang.pipeline.worker.client.crd.models.V1beta1ApplicationList;

/**
 * @author liuyuan.ly
 * @since 2024/7/26 9:57
 */
public interface ApplicationService {


    /**
     * 保存application
     *
     * @param dto
     * @return
     */

    ApiResult<Boolean> saveOrUpdateApplication(ApplicationDTO dto);

    /**
     * 获取application
     *
     * @param dto
     * @return
     */

    V1beta1ApplicationList getApplicationList(ApplicationDTO dto);

}
